import { PageResult } from '../types/global'
import { http } from '../utils/http'
import type { PaymentDetails } from '../types/payment'


export const createAliPayPage = (orderId: string) => {
  return http<string>({
    method: 'GET',
	url: `/alipay/create/${orderId}`,
   
  })
}

export const getPaidList = () => {
  return http<PageResult<PaymentDetails>>({
    method: 'GET',
	url: `/app/payment/paid`,
   
  })
}

export const getUnPaidList = ( ) => {
  return http<PageResult<PaymentDetails>>({
    method: 'GET',
	url: `/app/payment/unpaid`,
   
  })
}
